var StartLayer04 = cc.Layer.extend({
	backgroundLayer : null,
	mainLayar : null,
	ctor:function () {
		this._super();
		this.stopMusic();
		this.initFrames();
		this.loadBackground();
		this.loadMainLayer();
	},
	stopMusic : function() {
		_.cPause();
	},
	loadTest:function(){
		var sprite = new cc.Sprite("#home.png");
		sprite.setPosition(200,200);
		this.addChild(sprite);
	},
	initFrames : function(){
		cc.spriteFrameCache.addSpriteFrames(res_start04.start_p);
	},
	loadBackground : function(){
		this.backgroundLayer = new StartBackgroundLayer04();
		this.addChild(this.backgroundLayer);
	},
	loadMainLayer : function(){
		this.mainLayar = new StartMainLayer04();
		this.addChild(this.mainLayar);
	}
});

var StartScene04 = PScene.extend({
	onEnter:function () {
		this._super();
		var layer = new StartLayer04();
		this.addChild(layer);
	}
});
